<!DOCTYPE html>
<!-- saved from url=(0091)http://www.weixin.mmd88888.com/pay/buyCard.html;jsessionid=F320884D9615307FF26E57E9A9F66A3A -->
<html class="js cssanimations"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

 <script type="text/javascript" src="../com.attilax/core/core.js"></script>
  <script type="text/javascript" src="../com.attilax\jsbridge\dsl_jsb_v12qaf.js"></script>
  <script type="text/javascript" src="../com.attilax\cfg\approot_jsV4q329.jsp"></script>
  <script type="text/javascript" src="cfgRead.jsp"></script>
 <script >
 hre_web_url="/DslAjaxJsbridgeServlet";
 
 </script>
  <script src="../com.attilax/order/orderService.js"></script>
 
 <link rel="stylesheet" href="jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="expires" content="0">   
  
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=0">
  <title>充值中心</title>
 
  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp">

  <link rel="icon" type="image/png" href="http://www.weixin..com/assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="http://www.weixin..com/assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="MMD UI">
  <link rel="apple-touch-icon-precomposed" href="http://www.weixin..com/assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="/assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">

  <link rel="stylesheet" href="./pay_files/amazeui.min.css">
  <link rel="stylesheet" href="./pay_files/app.css">
    <link rel="stylesheet" href="pay.css">
  <script type="text/javascript">
  	function sumbitMoney(){
  		var gameAccount = $("#gameAccount").val();
  		if("" == gameAccount){
  			alert("请填写您的数字ID！");
  			$("#gameAccount").focus();
  			return;
  		}
  		var reg = new RegExp("^[0-9]*[1-9][0-9]*$");
  		if(!reg.test(gameAccount)){
  			alert("您填写的数字ID格式不正确，请重新填写！");
  			$("#gameAccount").focus();
  			return;
  		}
  		$.ajax({ 
			url: "/checkUser", 
			data: {
				accountId: gameAccount
			},
			type: "POST",
			success: function(data){
				if("OK" == data){
					$("#sumbitBtn").attr("disabled", true);
					submitPay();
				}else{
					alert("该数字ID不存在，请重新填写！");
					$("#gameAccount").focus();
				}
			}
		});
  	}
  	
  	function chrIdChange(obj){
  		var value = $(obj).val();
  		var reg = new RegExp("^[0-9]*[1-9][0-9]*$");
    	if(reg.test(value) && "" != value){
    		$.ajax({ 
    			url: "/checkUser", 
    			data: {
    				accountId: value
    			},
    			type: "POST",
    			success: function(data){
    				if("OK" == data){
    					$("#sumbitBtn").attr("disabled", false);
    				}else{
    					$("#sumbitBtn").attr("disabled", true);
    				}
    			}
    		});
    	}else{
    		$("#sumbitBtn").attr("disabled", true);
    	}
  	}
  	
  	function submitPay(){
  		var gameAccount = $("#gameAccount").val();
  		var money = $("#money").val();
  		$.ajax({ 
			url: "/sumbitPay",
			data: {
				gameAccount: gameAccount,
				money: money
			},
			type: "POST",
			success: function(data){
				if("SUCCESS" == data.return_code){
					if (typeof WeixinJSBridge == "undefined"){
				  	   if( document.addEventListener ){
				  	       document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
				  	   }else if (document.attachEvent){
				  	       document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
				  	       document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
				  	   }
				  	}else{
				  	   onBridgeReady(data.payInfo);
				  	}
				}else{
					alert("支付失败");
				}
			}
		});
  	}
  	
  	function onBridgeReady(data){
  		WeixinJSBridge.invoke(
  	       'getBrandWCPayRequest', data,
  	       function(res){
  	           if(res.err_msg == "get_brand_wcpay_request:ok" ) {
  	        		window.location.href = "/pay/success.html";
  	           }else{
  	        	 	window.location.href = "/pay/error.html";
  	           }
  	       }
  	   );
  	}
  </script>
  
  <style id="dynamic_css"></style>
</head>
<body>
<img src="img/sushi.jpg" style="position:absolute; left:0; top:0; display:none"  class="sushi_tag_5kwi" />
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a
  href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->
<footer data-am-widget="footer" class="am-footer am-footer-default am-no-layout" data-am-footer="{  }" style="text-align:center">
    <div class="am-footer-miscs ">
		<p> 湖南奶牛科技有限公司   </p>
        <p>湘ICP备16006555号-1    ver 1.2 </p>
  </div>
</footer>

<script src="./pay_files/jquery.min.js"></script>
<script src="./pay_files/amazeui.min.js"></script>
<!--  aaa  -->
<script src="pay.js"></script>
<script src="../com.attilax\core\coreV4.js"></script>
<script src="jquery-ui-1.12.1.custom/jquery-ui.js"></script><script>

			
			
  
  $("#bgmzk")[0].play();// $("#audio")[0].play(); 
  document.addEventListener('touchstart', function(){ 
                 $("#bgmzk")[0].play(); 
  			 
		}, false);
//var wid_scr=$(document.body).width();
//alert($(window).width()); //浏览器当前窗口可视区域宽度 
//alert($(document).width());//浏览器当前窗口文档对象宽度 
//alert($(document.body).width());//浏览器当前窗口文档body的高度 
// $("#sumbitBtn").css("width",wid_scr-20);
// alert(pay_notify_url);
 
  </script>
</body></html>